home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C / Code Resources / Jims CDEFs 1.50 / CDEF Source / source / miscCDEF.h < prev    next >
Encoding:
Text File  |  1995-11-08  |  1.6 KB  |  44 lines  |  [TEXT/KAHL]

  1. //------------------------- © 1994-1995 by James G. Stout --------------------------
  2. // File        : miscCDEF.h
  3. // Date        : November 2,1991
  4. // Author    : Jim Stout
  5. // Purpose    : #defines, typedefs and prototypes for miscCDEF.c
  6. //----------------------------------------------------------------------------------
  7. #ifndef calcCntlRgn
  8.     #define calcCntlRgn        10
  9.     #define calcThumbRgn    11
  10. #endif
  11. #ifndef useWindFont
  12.     #define useWindFont        0x08
  13. #endif
  14.  
  15. //----------------------------------------------------------------------------------
  16. //    data passed to DeviceLoop
  17. //----------------------------------------------------------------------------------
  18. typedef struct {
  19. ControlHandle    theCtl;
  20. short            varCode;
  21. Rect            controlRect;
  22. }devLoopData,**devLoopHandle;
  23.  
  24. //----------------------------------------------------------------------------------
  25. //    Function prototypes
  26. //----------------------------------------------------------------------------------
  27.  
  28. short        getPixDepth        (Rect * r);
  29. void         sys6DeviceLoop    (RgnHandle drawingRgn, DeviceLoopDrawingUPP drawingProc, 
  30.                                 long userData, DeviceLoopFlags flags);
  31. short        getOSVers        (void);
  32. Boolean        trapAvailable    (short trapNum);
  33. short        numToolBoxTraps    (void);
  34. TrapType    getTrapType        (short trapType);
  35.  
  36. //----------------------------------------------------------------------------------
  37. //  low-memory globals  - I know…, but Apple's popUp CDEF 63 uses these…
  38. //----------------------------------------------------------------------------------
  39. #ifdef THINK_C
  40. extern long        LastSpExtra : 0x0B4C;
  41. extern short    SysFontFam : 0x0BA6;
  42. extern short    SysFontSize : 0x0BA8;
  43. #endif
  44. //----------------------------------------------------------------------------------